
import { ecsclass, EcsComponent } from '../../../../../../../../pkg-export/@gamex/cc-ecs';
import { MyEntity } from '../entity/MyEntity';

@ecsclass('BulletComponent')
export class BulletComponent extends EcsComponent<MyEntity> {
    static allowRecycling = true;

    protected onRemove(): void {
        this._owner = null;
    }

    /** 拥有者 */
    private _owner: MyEntity;
    public get owner() {
        return this._owner;
    }
    public set owner(value) {
        this._owner = value;
    }
}